[XEND] Write the default ABI to the xenstore entry for each frontend
authorIan Campbell <ian.campbell@xensource.com>
Tue, 15 May 2007 18:00:48 +0000 (19:00 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Tue, 15 May 2007 18:00:48 +0000 (19:00 +0100)
device.

This allows to run older kernels in a 32on64 mixed environment.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/DevController.py

index 2d3174d8d7c87ea47871ec19cf663b777c32c8e8..ede2f27c363b84e1203171724152ac5c08bb8415 100644 (file)
@@ -357,6 +357,8 @@ class XendDomainInfo:
         self.console_port = None
         self.console_mfn = None
 
+        self.native_protocol = None
+
         self.vmWatch = None
         self.shutdownWatch = None
         self.shutdownStartTime = None
@@ -1520,6 +1522,8 @@ class XendDomainInfo:
                 self.console_mfn = channel_details['console_mfn']
             if 'notes' in channel_details:
                 self.info.set_notes(channel_details['notes'])
+            if 'native_protocol' in channel_details:
+                self.native_protocol = channel_details['native_protocol'];
 
             self._introduceDomain()
 
index ab7ac3219a75e2e958579eb390ad0988cb31863e..c43ed2681be44708ed4fa034c0cf84ec291d7016 100644 (file)
@@ -459,6 +459,8 @@ class DevController:
             'state' : str(xenbusState['Initialising'])
             })
 
+        if self.vm.native_protocol:
+            frontDetails.update({'protocol' : self.vm.native_protocol})
 
         backDetails.update({
             'domain' : self.vm.getName(),